package com.scuec.groupfive.dto;

import com.fasterxml.jackson.annotation.JsonProperty;
import java.util.Date;

public class UserGrowthDTO {
    private String date;
    private Date startDate;
    private Integer count;

    @JsonProperty("total_users")
    private Integer totalUsers;

    @JsonProperty("growth_rate")
    private Double growthRate;

    // 必须添加getter和setter方法
    public String getDate() {
        return date;
    }

    public void setDate(String date) {
        this.date = date;
    }

    public Date getStartDate() {
        return startDate;
    }

    public void setStartDate(Date startDate) {
        this.startDate = startDate;
    }

    public Integer getCount() {
        return count;
    }

    public void setCount(Integer count) {
        this.count = count;
    }

    public Integer getTotalUsers() {
        return totalUsers;
    }

    public void setTotalUsers(Integer totalUsers) {
        this.totalUsers = totalUsers;
    }

    public Double getGrowthRate() {
        return growthRate;
    }

    public void setGrowthRate(Double growthRate) {
        this.growthRate = growthRate;
    }

    @Override
    public String toString() {
        return "UserGrowthDTO{" +
                "date='" + date + '\'' +
                ", count=" + count +
                ", totalUsers=" + totalUsers +
                ", growthRate=" + growthRate +
                '}';
    }
}